import { ChatGateway } from './chat.gateway';
import { FriendMessageEntity } from './../../entities/friendMessage.entity';
import { FriendEntity } from './../../entities/friend.entity';
import { GroupMessageEntity } from './../../entities/groupMessage.entity';
import { UserGroupEntity } from './../../entities/userGroup.entity';
import { GroupEntity } from './../../entities/group.entity';
import { UserEntity } from './../../entities/user.entity';
import { TypeOrmModule } from '@nestjs/typeorm';
import { Module } from '@nestjs/common';
// import { ChatController } from './chat.controller';

@Module({
  imports: [
    TypeOrmModule.forFeature([
      UserEntity, 
      UserGroupEntity, 
      GroupEntity, 
      GroupMessageEntity, 
      FriendEntity, 
      FriendMessageEntity
    ])
  ],
  providers: [ChatGateway],
  exports: [ChatGateway],
  // controllers: [ChatController]
})
export class ChatModule {}
